console.log(process.env.TARGET);

import path from 'path';

// 根据环境变量中的 target 属性 获取对应模块中的 package.json

const packagesDir = path.resolve(__dirname, 'packages');

const packageDir = path.resolve(packagesDir, process.env.TARGET);

const resolve = (p) => path.resolve(packagesDir, p)